var fs=require("fs");
var zlib=require("zlib");

//解压index.txt.gz文件为input。txt
fs.createReadStream("index.txt.gz")
.pipe(zlib.createGunzip())
.pipe(fs.createWriteStream("input.txt"));

console.log("文件压缩完成");

